$doctype
$doctype
Builder for HTML drop-down menus Syntax:<pre> // create instance. arguments are used to set attributes of select-tag $select = new html_select(['name' => 'fieldname']);
// add one option $select->add('Switzerland', 'CH');
// add multiple options $select->add(['Switzerland','Germany'], ['CH','DE']);
// generate pulldown with selection 'Switzerland' and return html-code // as second argument the same attributes available to instantiate can be used print $select->show('CH');
tag(string $tagname, array $attrib = [], string $content = null, array $allowed = null) : string
Generic method to create a HTML tag
string | $tagname | Tag name |
array | $attrib | Tag attributes as key/value pairs |
string | $content | Optional Tag content (creates a container tag) |
array | $allowed | List with allowed attributes, omit to allow all |
The XHTML tag